package com.member.shop.domain;

import com.member.common.annotation.Excel;
import com.member.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 积分配置对象 sys_biz_integral_config
 *
 * @author thomas
 * @date 2024-05-21
 */
public class SysBizIntegralConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 唯一id
     */
    private Long id;

    /**
     * 获取方式
     */
    @Excel(name = "获取方式")
    private String typeCode;

    /**
     * 积分
     */
    @Excel(name = "积分")
    private Integer integral;
    @Excel(name = "周期")
    private Integer period;
    @Excel(name = "上限")
    private Integer upperLimit;

    public Integer getPeriod() {
        return period;
    }

    public void setPeriod(Integer period) {
        this.period = period;
    }

    public Integer getUpperLimit() {
        return upperLimit;
    }

    public void setUpperLimit(Integer upperLimit) {
        this.upperLimit = upperLimit;
    }

    /**
     * 单位数
     */
    @Excel(name = "单位数")
    private Long unit;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setTypeCode(String typeCode) {
        this.typeCode = typeCode;
    }

    public String getTypeCode() {
        return typeCode;
    }

    public void setIntegral(Integer integral) {
        this.integral = integral;
    }

    public Integer getIntegral() {
        return integral;
    }

    public void setUnit(Long unit) {
        this.unit = unit;
    }

    public Long getUnit() {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("id", getId()).append("typeCode", getTypeCode()).append("integral", getIntegral()).append("unit", getUnit()).append("remark", getRemark()).append("createBy", getCreateBy()).append("updateBy", getUpdateBy()).append("createTime", getCreateTime()).append("updateTime", getUpdateTime()).toString();
    }
}
